//
//  UINavigationController+DFExtension.m
//  Pods
//
//  Created by rujia chen on 17/5/5.
//
//

#import "UINavigationController+DFExtension.h"
#import "NSObject+DFSwizzle.h"

@implementation UINavigationController (DFExtension)

+ (void)load {
    [self df_swizzleMethod:@selector(preferredStatusBarStyle) withMethod:@selector(_preferredStatusBarStyle) error:nil];
}

- (UIStatusBarStyle)_preferredStatusBarStyle {
    UIStatusBarStyle style = self.visibleViewController.preferredStatusBarStyle;
    return style;
}

@end
